export const getters = {
  getSex: state => {
    if(state.baseInfoMessage.sex === 1){
      return '男'
    }else if (state.baseInfoMessage.sex === 2) {
      return '女'
    }else{
      return null
    }
  },
  getStatus(state){
    if(state.baseInfoMessage.status === 0){
      return '求职'
    }else if (state.baseInfoMessage.status === 1) {
      return '自由工作'
    }else if(state.baseInfoMessage.status === 2){
      return '正常工作'
    }else {
      return null
    }
  },
  getPInformation(state) {
    return {
      nickName: state.baseInfoMessage.nickName,
      company: state.baseInfoMessage.company,
      position: state.baseInfoMessage.position,
      direction: state.baseInfoMessage.direction,
      status: state.baseInfoMessage.status,
      sex: state.baseInfoMessage.sex,
      age: state.baseInfoMessage.age,
      workLength: state.baseInfoMessage.workLength,
    }
  }
}
